Returning a Result Most scripts return a result which Black Night will display in a dialog box. The result in an AppleScript is always the result of the last function. Sometimes you won't be interested in this result and sometimes you will. For example, the following script will return "true" or "false": tell application "Black Night" wait until connection of document 1 becomes active end tell but the following script is a lot more informative: tell application "Black Night" wait until connection of document 1 becomes active if result then return "Yahoo, we're connected" else return "Sorry, unable to connect" end if end tell and the following script returns nothing: tell application "Black Night" wait until connection of document 1 becomes active return end tell